package com.sh.mytool.cv.service;

import java.util.Map;

import com.sh.common.page.QueryResult;
import com.sh.mytool.cv.domain.Image;
import com.sh.mytool.cv.domain.ImageFile;
import com.sh.mytool.cv.domain.ImageGallery;

public interface ImageService {

    public QueryResult<Image> page(Long galleryId, int begin, int max);

    public void insert(ImageGallery gallery, Image image, ImageFile cover) throws Exception;

    public void delete(Long id) throws Exception ;

    public Image get(Long id);

    public void update(Image image, ImageFile cover)  throws Exception;

}
